/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package taskmanager2ndedition;

import java.util.Calendar;
import java.util.List;
import taskmanager2ndedition.server.TaskManager;

/**
 *
 * @author denaas
 */
public class User extends ClientUser {
    
    private long password;
    private boolean admin;
    private TaskManager taskManager;
    private boolean modified;

    public User(String login, long password, boolean admin,int id){
        this.login = login;
        this.password = password;
        this.admin = admin;
        this.id = id;
        this.taskManager = new TaskManager(id);
        this.modified = true;
    }

    public long getPassword(){
        return password;
    }
    
    public void setPassword(long val){
        password = val;
    }
    
    public boolean isAdmin(){
        return admin;
    }
    
    public void setAdmin(boolean val){
        admin = val;
    }
    
    public TaskManager getTaskManager(){
        return taskManager;
    }
    
    public boolean isModified(){
        return modified;
    }
    
    public void setModified(boolean val){
        modified = val;
    }
}
